<?php
require './Vcode.php';
//开启session
session_start();
//实例化验证码类
$vcode = new Vcode(80,25,4);
//获取验证码字符 stroupper();统一转换，不区分大小写
$_SESSION['code'] = $vcode->getcode();
//输出验证码图像
$vcode->outimg();